Red envelope 相关的 Event 类型

该类型的 Event 对象会在 red_envelope 对象红包发送成功和接收成功后触发,以 Webhooks 形式发送至客户配置的 Webhooks URL。详情请参考 Events 事件

事件类型描述
red_envelope.sent红包对象,红包发送成功时触发
red_envelope.received红包对象,红包接收成功时触发

示例对象

事件类型为 red_envelope.sent :
{
    "id": "evt_5BpbV0tYK4ySvodDG2RT6XRq",
    "created": 1436855491,
    "type": "red_envelope.sent",
    "livemode": true,
    "object": "event",
    "data": {
        "object": {
            "id": "red_z1O8iLmXXXX5uPqLiDzLCavP",
            "object": "red_envelope",
            "created": 1436855474,
            "received": null,
            "refunded": null,
            "livemode": true,
            "status": "sent",
            "app": "app_1234567890abcDEF",
            "channel": "wx_pub",
            "order_no": "123456789",
            "transaction_no": "0010037269201507140154722852",
            "amount": 100,
            "amount_settle": 100,
            "currency": "cny",
            "recipient": "Openid",
            "subject": "Your Subject",
            "body": "Your Body",
            "description": "Your Description",
            "extra": {
                "nick_name": "Nick Name",
                "send_name": "Send Name"
            }
        }
    },
    "pending_webhooks": 0,
    "request": "iar_zjLGC8zfLOS8WPS0WLi14ynD"
}
事件类型为 red_envelope.received :
{
    "id": "evt_hMGV2eR15fMupHUdDYibhLxe",
    "object": "event",
    "type": "red_envelope.received",
    "livemode": true,
    "created": 1436753800,
    "data": {
        "object": {
            "id": "red_4qLGO84GaXHOWTSO80mLO8i9",
            "object": "red_envelope",
            "created": 1436753573,
            "received": null,
            "refunded": null,
            "livemode": true,
            "status": "received",
            "app": "app_1234567890abcDEF",
            "channel": "wx_pub",
            "order_no": "123456789",
            "transaction_no": "0010037269201507130153706663",
            "amount": 100,
            "amount_settle": 100,
            "currency": "cny",
            "recipient": "Openid",
            "subject": "Your Subject",
            "body": "Your Body",
            "description": "Your Description",
            "extra": {
                "nick_name": "Nick Name",
                "send_name": "Send Name"
            }
        }
    },
    "pending_webhooks": 0,
    "request": "iar_jf1iT0fT0a18v1u5qDvb1uDS"
}